package com.gzy.mylog.model;

public class Result<T> {
    private int code = Code.OK;
    private String message = "OK";
    private T data;

    public Result() {
    }


    public Result(T data) {
        this.data = data;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public static class Code{
        public static int OK = 20000;
        public static int ERR = 50000;


    }
}
